poll/epoll/kqueque

EPOLL For few fds, this backend is a bit little slower than poll and select, but it scales phenomenally better. While poll and select usually scale like O(total_fds) where n is the total number of fds (or the highest fd), epoll scales either O(1) or O(active_fds). The epoll mechanism deserves honorable mention as the most … Читати далі poll/epoll/kqueque